package com.security.securityproject;

import android.app.IntentService;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

public class KeyService extends IntentService {

	public static final String USERNAME = "filename";
	public static final String PASSWORD = "filepath";
	public static final String DURATION = "result";
	public static final String NOTIFICATION = "com.security.securityproject";

	public KeyService() {
		super("KeyService");
		// TODO Auto-generated constructor stub
	}

	@Override
	protected void onHandleIntent(Intent intent) {

		
		
		
		
	}

	private void publishResults(String outputPath, String result,int duration) {
		Intent intent = new Intent(NOTIFICATION);
		intent.putExtra(USERNAME, outputPath);
		intent.putExtra(PASSWORD, result);
		intent.putExtra(DURATION,duration);
		sendBroadcast(intent);
	}
}
